<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
      <h1>你好 奥布莱恩杯</h1>

      <h1>
          <span id="year">2021</span>
          <span id="month">5</span>
          <span id="date">25</span>
          <span id="hours">1</span>
          <span id="minutes">1</span>
          <span id="seconds">1</span>
          <span id="week">星期五</span>
      </h1> 

       <script>
             var weekList = ['日','一','二','三','四','五','六']
           setInterval(function(){
               document.getElementById('year').innerHTML =new Date().getFullYear();
               document.getElementById('month').innerHTML =new Date().getMonth()+1
               document.getElementById('date').innerHTML =new Date().getDate();
               document.getElementById('hours').innerHTML =new Date().getHours();
               document.getElementById('minutes').innerHTML =new Date().getMinutes();
               document.getElementById('seconds').innerHTML =new Date().getSeconds();
               document.getElementById('week').innerHTML =new Date().getDay();

               console.log(new Date().getDay())

           },1000);
       </script>
</body>
</html>